import type { KnowledgeDetail } from '@/types/knowledge';
import { basicKnowledge } from './basic/basic';
import { queryKnowledge } from './query/query';
import { dmlKnowledge } from './dml/dml';
import { advancedQueryKnowledge } from './advanced-query/advanced-query';
import { joinKnowledge } from './join/join';
import { optimizationKnowledge } from './optimization/optimization';
import { transactionKnowledge } from './transaction/transaction';
import { procedureKnowledge } from './procedure/procedure';

/**
 * SQL所有分类知识点（合并）
 */
export const allKnowledgeCards: KnowledgeDetail[] = [
	...basicKnowledge,
	...queryKnowledge,
	...dmlKnowledge,
	...advancedQueryKnowledge,
	...joinKnowledge,
	...optimizationKnowledge,
	...transactionKnowledge,
	...procedureKnowledge
];

/**
 * 导出各个分类的知识点
 */
export { basicKnowledge } from './basic/basic';
export { queryKnowledge } from './query/query';
export { dmlKnowledge } from './dml/dml';
export { advancedQueryKnowledge } from './advanced-query/advanced-query';
export { joinKnowledge } from './join/join';
export { optimizationKnowledge } from './optimization/optimization';
export { transactionKnowledge } from './transaction/transaction';
export { procedureKnowledge } from './procedure/procedure';

